OSLC Link Creation Through DXL

Dear All,

 

I want to Create External OSLC Link through DXL. But I could not get any clue. I Can Add normal External Link. Please let me know how I can do this?


montapas - Thu Aug 22 09:42:36 EDT 2013

Re: OSLC Link Creation Through DXL
doors36677 - Thu Sep 04 09:22:43 EDT 2014

On your hard drive look at file:  createNewLink.inc

Re: OSLC Link Creation Through DXL
Wolfgang Uhr - Thu Sep 04 11:57:37 EDT 2014

Actually im not very familar with OSLC, but if you mean the same as I mean, you would better ask there: https://jazz.net/

Re: OSLC Link Creation Through DXL
SudarshanRao - Thu Sep 04 14:42:08 EDT 2014

I think there are two parts to your question:


1. You can create a link in DOORS, pointing to an external artifact, say Test Case in RQM.
>>This, you can achieve normally, the way you'd create any External link. Refer to create perm in DOORS for External Links

2. You can create a link in an external artifact, say Test Case in RQM, pointing to an object in DOORS.
>>This will require usage of HTTP perms. These are documented in the latest release of DXL Reference Manual (9.6).
In a nutshell, you'll need to do the following:
    a. Perform a GET on the resource you need to create link in (say Test Case)
    b. Modify the body of the response, to include link representation. For example, if it is a Test Case, then the relationship will be Validated By. So the line you'll need to necessarily add is:
<oslc_qm:validatesRequirement rdf:resource="https://clmserver:8443/qm/asd/xxxxxxxx" />
With this modified body, perform a PUT on the same resource URL. You'll need to use an If-Match header while performing the PUT, whose value will be the value of ETag header you'd have got as response header of previous GET.

Hope that helps..